Optimal. Leaf size=123 \[ \frac {\left (a^2 e^4-6 a c d^2 e^2+c^2 d^4\right ) \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{\sqrt {a} c^{5/2}}+\frac {2 d e \left (c d^2-a e^2\right ) \log \left (a+c x^2\right )}{c^2}+\frac {e^2 x \left (6 c d^2-a e^2\right )}{c^2}+\frac {2 d e^3 x^2}{c}+\frac {e^4 x^3}{3 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 123, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {702, 635, 205, 260} \[ \frac {\left (a^2 e^4-6 a c d^2 e^2+c^2 d^4\right ) \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{\sqrt {a} c^{5/2}}+\frac {2 d e \left (c d^2-a e^2\right ) \log \left (a+c x^2\right )}{c^2}+\frac {e^2 x \left (6 c d^2-a e^2\right )}{c^2}+\frac {2 d e^3 x^2}{c}+\frac {e^4 x^3}{3 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 260
Rule 635
Rule 702
Rubi steps
\begin {align*} \int \frac {(d+e x)^4}{a+c x^2} \, dx &=\int \left (\frac {e^2 \left (6 c d^2-a e^2\right )}{c^2}+\frac {4 d e^3 x}{c}+\frac {e^4 x^2}{c}+\frac {c^2 d^4-6 a c d^2 e^2+a^2 e^4+4 c d e \left (c d^2-a e^2\right ) x}{c^2 \left (a+c x^2\right )}\right ) \, dx\\ &=\frac {e^2 \left (6 c d^2-a e^2\right ) x}{c^2}+\frac {2 d e^3 x^2}{c}+\frac {e^4 x^3}{3 c}+\frac {\int \frac {c^2 d^4-6 a c d^2 e^2+a^2 e^4+4 c d e \left (c d^2-a e^2\right ) x}{a+c x^2} \, dx}{c^2}\\ &=\frac {e^2 \left (6 c d^2-a e^2\right ) x}{c^2}+\frac {2 d e^3 x^2}{c}+\frac {e^4 x^3}{3 c}+\frac {\left (4 d e \left (c d^2-a e^2\right )\right ) \int \frac {x}{a+c x^2} \, dx}{c}+\frac {\left (c^2 d^4-6 a c d^2 e^2+a^2 e^4\right ) \int \frac {1}{a+c x^2} \, dx}{c^2}\\ &=\frac {e^2 \left (6 c d^2-a e^2\right ) x}{c^2}+\frac {2 d e^3 x^2}{c}+\frac {e^4 x^3}{3 c}+\frac {\left (c^2 d^4-6 a c d^2 e^2+a^2 e^4\right ) \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{\sqrt {a} c^{5/2}}+\frac {2 d e \left (c d^2-a e^2\right ) \log \left (a+c x^2\right )}{c^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.08, size = 111, normalized size = 0.90 \[ \frac {\left (a^2 e^4-6 a c d^2 e^2+c^2 d^4\right ) \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{\sqrt {a} c^{5/2}}+\frac {e \left (6 \left (c d^3-a d e^2\right ) \log \left (a+c x^2\right )-3 a e^3 x+c e x \left (18 d^2+6 d e x+e^2 x^2\right )\right )}{3 c^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.93, size = 283, normalized size = 2.30 \[ \left [\frac {2 \, a c^{2} e^{4} x^{3} + 12 \, a c^{2} d e^{3} x^{2} - 3 \, {\left (c^{2} d^{4} - 6 \, a c d^{2} e^{2} + a^{2} e^{4}\right )} \sqrt {-a c} \log \left (\frac {c x^{2} - 2 \, \sqrt {-a c} x - a}{c x^{2} + a}\right ) + 6 \, {\left (6 \, a c^{2} d^{2} e^{2} - a^{2} c e^{4}\right )} x + 12 \, {\left (a c^{2} d^{3} e - a^{2} c d e^{3}\right )} \log \left (c x^{2} + a\right )}{6 \, a c^{3}}, \frac {a c^{2} e^{4} x^{3} + 6 \, a c^{2} d e^{3} x^{2} + 3 \, {\left (c^{2} d^{4} - 6 \, a c d^{2} e^{2} + a^{2} e^{4}\right )} \sqrt {a c} \arctan \left (\frac {\sqrt {a c} x}{a}\right ) + 3 \, {\left (6 \, a c^{2} d^{2} e^{2} - a^{2} c e^{4}\right )} x + 6 \, {\left (a c^{2} d^{3} e - a^{2} c d e^{3}\right )} \log \left (c x^{2} + a\right )}{3 \, a c^{3}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 113, normalized size = 0.92 \[ \frac {2 \, {\left (c d^{3} e - a d e^{3}\right )} \log \left (c x^{2} + a\right )}{c^{2}} + \frac {{\left (c^{2} d^{4} - 6 \, a c d^{2} e^{2} + a^{2} e^{4}\right )} \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{\sqrt {a c} c^{2}} + \frac {c^{2} x^{3} e^{4} + 6 \, c^{2} d x^{2} e^{3} + 18 \, c^{2} d^{2} x e^{2} - 3 \, a c x e^{4}}{3 \, c^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 150, normalized size = 1.22 \[ \frac {e^{4} x^{3}}{3 c}+\frac {a^{2} e^{4} \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{\sqrt {a c}\, c^{2}}-\frac {6 a \,d^{2} e^{2} \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{\sqrt {a c}\, c}+\frac {2 d \,e^{3} x^{2}}{c}+\frac {d^{4} \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{\sqrt {a c}}-\frac {2 a d \,e^{3} \ln \left (c \,x^{2}+a \right )}{c^{2}}-\frac {a \,e^{4} x}{c^{2}}+\frac {2 d^{3} e \ln \left (c \,x^{2}+a \right )}{c}+\frac {6 d^{2} e^{2} x}{c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 2.90, size = 114, normalized size = 0.93 \[ \frac {2 \, {\left (c d^{3} e - a d e^{3}\right )} \log \left (c x^{2} + a\right )}{c^{2}} + \frac {{\left (c^{2} d^{4} - 6 \, a c d^{2} e^{2} + a^{2} e^{4}\right )} \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{\sqrt {a c} c^{2}} + \frac {c e^{4} x^{3} + 6 \, c d e^{3} x^{2} + 3 \, {\left (6 \, c d^{2} e^{2} - a e^{4}\right )} x}{3 \, c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.11, size = 127, normalized size = 1.03 \[ \frac {e^4\,x^3}{3\,c}-x\,\left (\frac {a\,e^4}{c^2}-\frac {6\,d^2\,e^2}{c}\right )+\frac {2\,d\,e^3\,x^2}{c}+\frac {\mathrm {atan}\left (\frac {\sqrt {c}\,x}{\sqrt {a}}\right )\,\left (a^2\,e^4-6\,a\,c\,d^2\,e^2+c^2\,d^4\right )}{\sqrt {a}\,c^{5/2}}-\frac {\ln \left (c\,x^2+a\right )\,\left (16\,a^2\,c^3\,d\,e^3-16\,a\,c^4\,d^3\,e\right )}{8\,a\,c^5} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 1.01, size = 401, normalized size = 3.26 \[ x \left (- \frac {a e^{4}}{c^{2}} + \frac {6 d^{2} e^{2}}{c}\right ) + \left (- \frac {2 d e \left (a e^{2} - c d^{2}\right )}{c^{2}} - \frac {\sqrt {- a c^{5}} \left (a^{2} e^{4} - 6 a c d^{2} e^{2} + c^{2} d^{4}\right )}{2 a c^{5}}\right ) \log {\left (x + \frac {4 a^{2} d e^{3} + 2 a c^{2} \left (- \frac {2 d e \left (a e^{2} - c d^{2}\right )}{c^{2}} - \frac {\sqrt {- a c^{5}} \left (a^{2} e^{4} - 6 a c d^{2} e^{2} + c^{2} d^{4}\right )}{2 a c^{5}}\right ) - 4 a c d^{3} e}{a^{2} e^{4} - 6 a c d^{2} e^{2} + c^{2} d^{4}} \right )} + \left (- \frac {2 d e \left (a e^{2} - c d^{2}\right )}{c^{2}} + \frac {\sqrt {- a c^{5}} \left (a^{2} e^{4} - 6 a c d^{2} e^{2} + c^{2} d^{4}\right )}{2 a c^{5}}\right ) \log {\left (x + \frac {4 a^{2} d e^{3} + 2 a c^{2} \left (- \frac {2 d e \left (a e^{2} - c d^{2}\right )}{c^{2}} + \frac {\sqrt {- a c^{5}} \left (a^{2} e^{4} - 6 a c d^{2} e^{2} + c^{2} d^{4}\right )}{2 a c^{5}}\right ) - 4 a c d^{3} e}{a^{2} e^{4} - 6 a c d^{2} e^{2} + c^{2} d^{4}} \right )} + \frac {2 d e^{3} x^{2}}{c} + \frac {e^{4} x^{3}}{3 c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________